Augment dylib search paths for rustc/build scripts
authorAlex Crichton <alex@alexcrichton.com>
Mon, 19 Jan 2015 23:46:07 +0000 (15:46 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 19 Jan 2015 23:48:06 +0000 (15:48 -0800)
commit50e00c9712edb40103a69f262b8f065f79a893d4
treeac3fe3c5b186b47ab31d9009f81c68628a4117ae
parent0fdaf507a1f9dd9f6eb59e5579c6cf6f2cd9cff2
Augment dylib search paths for rustc/build scripts

Whenever a build script or a plugin depends on a native dynamic library, the
dylib search path will be required to include the path to the generated dynamic
library. Currently Cargo does not augment the search path, causing load errors
or execution errors whenever builds are attempted in this case.

This commit remedies the situation by ensuring that dynamic libraries show up in
dylib search paths. This commit is necessary to fully migrate the remaining
tests from the old build command infrastructure to build scripts.
Cargo.toml
src/cargo/ops/cargo_rustc/custom_build.rs
src/cargo/ops/cargo_rustc/engine.rs
src/cargo/ops/cargo_rustc/mod.rs
tests/test_cargo_compile_custom_build.rs
tests/test_cargo_compile_plugins.rs